package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 礼品兑换表 mb_gift_convert
 *
 * @author null
 * @date 2020-04-23
 * @blame Android Team
 */
public class MbGiftConvert extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 未兑换
     */
    public static final int NOTCHANGE = 0;
    /**
     * 已兑换
     */
    public static final int CHANGE = 1;
    /**
     * 已过期
     */
    public static final int OVERDUE = 2;
    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 会员ID
     */
    private Integer membersId;
    /**
     * 礼品数量
     */
    private Integer giftNum;
    /**
     * 礼品ID
     */
    private Integer giftId;
    /**
     * 签到时间
     */
    private Date signInTime;
    /**
     * 过期时间
     */
    private Date overdueTime;
    /**
     * 兑换编号
     */
    private String convertNo;
    /**
     * 兑换状态
     */
    private Integer convertStatus;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 扩展字段
     */
    private String ext;

    /**
     * 会员实体
     */
    private BoMembers members;
    /**
     * 礼品实体
     */
    private MbGift gift;

    public BoMembers getMembers() {
        return members;
    }

    public void setMembers(BoMembers members) {
        this.members = members;
    }

    public MbGift getGift() {
        return gift;
    }

    public void setGift(MbGift gift) {
        this.gift = gift;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setMembersId(Integer membersId) {
        this.membersId = membersId;
    }

    public Integer getMembersId() {
        return membersId;
    }

    public void setGiftNum(Integer giftNum) {
        this.giftNum = giftNum;
    }

    public Integer getGiftNum() {
        return giftNum;
    }

    public void setGiftId(Integer giftId) {
        this.giftId = giftId;
    }

    public Integer getGiftId() {
        return giftId;
    }

    public void setSignInTime(Date signInTime) {
        this.signInTime = signInTime;
    }

    public Date getSignInTime() {
        return signInTime;
    }

    public void setOverdueTime(Date overdueTime) {
        this.overdueTime = overdueTime;
    }

    public Date getOverdueTime() {
        return overdueTime;
    }

    public void setConvertNo(String convertNo) {
        this.convertNo = convertNo;
    }

    public String getConvertNo() {
        return convertNo;
    }

    public void setConvertStatus(Integer convertStatus) {
        this.convertStatus = convertStatus;
    }

    public Integer getConvertStatus() {
        return convertStatus;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getExt() {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("membersId", getMembersId())
                .append("giftNum", getGiftNum())
                .append("giftId", getGiftId())
                .append("signInTime", getSignInTime())
                .append("overdueTime", getOverdueTime())
                .append("convertNo", getConvertNo())
                .append("convertStatus", getConvertStatus())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .append("ext", getExt())
                .toString();
    }
}
